package cn.sytton.taffe.web.sys.entity;

import cn.sytton.taffe.framework.base.entity.BaseUpdatedEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 角色用户entity sys_role_user
 *
 * @author skyrock
 */
@Schema(description = "功能key")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_role_user")
public class RoleUserEntity extends BaseUpdatedEntity {

    @Schema(description = "角色ID")
    private String roleId;    // 角色ID

    @Schema(description = "用户ID")
    private String userId;    // 用户ID

    //-----以下是关联属性-----

    @Schema(description = "用户ID集合")
    @TableField(exist = false)
    private List<String> userIds; //用户ID集合
}
